<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@taglib uri="/WEB-INF/struts-nested.tld" prefix="nested"%>
<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-template.tld" prefix="template"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Edicion Segmentos - EPrice</title>
<link href="css/estilos.css" rel="stylesheet" type="text/css"/>
</head>
<body onload="self.focus();">
  <html:form action="/actionRequest" method="get">
    <bean:parameter id="q" name="id_arrL"/>
    <html:hidden property="service" value="actualizarSegmentoProducto"/>
    <input type="hidden" name="id_arrL" value="<%out.print(q);%>"/>
    <table class="tabla" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="18" width="40%" align="right" class="encabezadoTabla font_general"><img alt="" src="images/img_loginFlecha.gif" /></td>
        <td height="18" width="60%" align="left" class="encabezadoTabla font_general"><strong>&nbsp;&nbsp;Segmento Producto</strong></td>
      </tr>
      <tr>
        <td valign="top" colspan="2">
          <table border="0" cellpadding="0" cellspacing="1" width="100%" class="tabla">
            <tr>
              <td class="encabezado_col font_general" width="5%" align="center">Id</td>
              <td class="encabezado_col font_general" width="10%" align="center">Codigo</td>
              <td class="encabezado_col font_general" width="55%" align="center">Descripcion Cliente</td>
              <td class="encabezado_col font_general" width="35%" align="center">Segmento</td>
            </tr>
            <logic:present name="arrL_clienteSub">
              <logic:iterate id="subsegmento" name="arrL_clienteSub" indexId="int_i">
                <tr>
                  <td class="par font_general" align="center"><% out.print(((Integer)int_i).intValue()+1);%></td>
                  <td class="par font_general" align="center"><bean:write name="subsegmento" property="str_cliente"/><html:hidden name="subsegmento"  property="str_cliente"/></td>
                  <td class="par font_general">&nbsp;<bean:write name="subsegmento" property="str_descCliente"/><html:hidden name="subsegmento" property="str_descCliente"/></td>
                  <td class="par font_general" align="center">
                    <html:select name="subsegmento" property="str_segmento" styleClass="textfield font_general">
                      <html:option value="">----</html:option>
                      <html:options collection="subsegmentos" property="str_codigoSubseg" labelProperty="str_codDescSubseg"/>
                    </html:select>
                  </td>
                </tr>
              </logic:iterate>
            </logic:present>
            <tr>
              <td colspan="4" align="center" class="colorCampo"><html:submit styleClass="boton">Guardar</html:submit></td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </html:form>
</body>
</html>
